package com.fuershiye.woman.monitor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fuershiye.woman.monitor.dao.UnitDao;
import com.fuershiye.woman.monitor.model.Unit;
import com.fuershiye.woman.monitor.service.UnitService;

@Service("unitService")
public class UnitServiceImpl implements UnitService {

    @Autowired
    private UnitDao unitDao;

    @Override
    public void save(Unit unit) {
    	unitDao.save(unit);
    }

    @Override
    public List<Unit> list(String name, Integer status) {
        return unitDao.list(name, status);
    }

    @Override
    public Unit get(Long id) {
        return unitDao.get(id);
    }

    @Override
    public void delete(Long id) {
    	unitDao.delete(id);
    }

}
